<div class="content main" style="clear:both;width:935px ;">
<!-- Container-->

<h1 class="title">Kết quả tìm kiếm<span></span></h1>
    <?php if(!$results) echo "<p style='font-size:18px;padding:10px;text-align:center'><b>Không tìm thấy kết quả</b></p>";
    else
    {
        foreach($results as $rs){
            $title = $this->_global->_unserialize($rs->post_title);
            $title = $title[$this->session->userdata('lan')]['post_title'];
            $alias = $this->_global->_unserialize($rs->seo_alias);
            $alias = $alias[$this->session->userdata('lan')]['alias'];
            $desc = $this->_global->_unserialize($rs->post_desc);
            $desc = $desc[$this->session->userdata('lan')]['post_desc'];
              $p =  $this->_global->_unserialize($rs->post_content);
            $p = $p[$this->session->userdata('lan')]['post_content'];
    ?>
        <div class="result">
            <h2 class="title" style="font-size: 13px;"><?php echo anchor('news/c'.$rs->cat_id.'/'.$alias.'-'.$rs->post_id,$title,'title="'.$title.'"') ?></h2>
            <!--<ul id="tagline">
    <li><b>Tags:</b><?php $tags = $rs->tagline;
            if($tags!=''){
                $tags = explode(',',$tags);
                foreach($tags as $tag){
                    echo anchor('tags/'._set_alias(trim($tag)),$tag,'title="'.$tag.'"').',';
                }
            }
        ?></li>
    
    
        </ul>--><div class="clear"></div>
        <div>
           <p> <img  style="margin-right: 5px;float: left;" alt="<?php echo $title ?>" title="<?php echo $title ?>" src="<?php echo $this->config->item('cdn_url').'exec/timthumb.php?src='._get_thumbnail($p) ?>&w=200&h=150" /><?php echo strip_tags(substr($desc,0,300)) ?> <?php echo anchor('news/c'.$rs->cat_id.'/'.$alias.'-'.$rs->cat_id,'[...]','title="'.$title.'"') ?></p>
           <div class="clear"></div>
        </div>        
        </div>
    <?php
        }
    } ?>
    
    </div>
<div class="clear"></div>
<!--End Contaier--> 